<template>
  <div class="search">
    <el-input v-model="input2" placeholder="请输入搜索内容" resize="horizontal">
      <template #prefix>
        <el-icon :size="22"><search /></el-icon>
      </template>
    </el-input>
  </div>
</template>

<script>
import { ElIcon, ElInput } from "element-plus";
import { Search } from "@element-plus/icons-vue";
import { ref } from "vue";
export default {
  setup() {
    const input2 = ref("");
    return {
      input2,
    };
  },
  components: {
    ElIcon,
    ElInput,
    Search,
  },
};
</script>

<style lang="less" scoped>
.search {
  .el-search {
    /deep/.el-input__prefix-inner {
      // display: flex;
      // align-items: center;
      // line-height: 32px;
      background: blue;
    }
  }
}
/deep/.el-input__inner {
  border-radius: 24px;
}
/deep/.el-input__inner {
  text-align: right;
  padding-right: 70px;
}

/deep/.el-input__prefix {
  display: flex;
  justify-content: center;
  align-items: center;
}
/deep/.el-input__suffix {
  height: 100%;
  display: flex;
  align-items: center;
}
/deep/.el-input__suffix-inner {
  width: 50px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #232f62;
  color: #fff;
  border-radius: 10px;
}
</style>
